import App from './App'
/* uViewUI */
import uView from "uview-ui";
/* http拦截器 */
import httpInterceptor from '@/request/http.interceptor.js'
import httpApi from '@/request/http.api.js'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
/* uViewUI */
Vue.use(uView)
/* http拦截器 */
Vue.use(httpInterceptor, app)
Vue.use(httpApi, app)
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	/* uViewUI */
	app.use(uView)
	/* http拦截器 */
	app.use(httpInterceptor, app)
	app.use(httpApi, app)
	return {
		app
	}
}
// #endif
